package org.itsolutions.javaBackup.spi;

import org.itsolutions.javaBackup.properties.IPropertyEnum;

/**
 * 
 * @author Tomas Fecko
 */
public enum EModule implements IPropertyEnum<EModule> {
	
	/**
	 * Unspecified.
	 */
	UNSPECIFIED,
	/**
	 * Ftp module.
	 */
	FTP,
	/**
	 * Git module.
	 */
	GIT,
	/**
	 * GUI web module.
	 */
	GUI_WEB,
	/**
	 * Core module.
	 */
	CORE;

	@Override
	public EModule getValue(String pValueStr) {
		if (pValueStr != null) {
			for (EModule value : values()) {
				if (value.name().equalsIgnoreCase(pValueStr.trim())) {
					return value;
				}
			}
		}
		return null;
	}
}





